package edu.cueb.wmis.utils;


//import org.springframework.security.core.context.SecurityContextHolder;

import edu.cueb.wmis.pojo.Admin;
import org.springframework.security.core.context.SecurityContextHolder;

public class AdminUtils {

    public static Admin getCurrentAdmin(){
        return (Admin) SecurityContextHolder.getContext().getAuthentication()
                .getPrincipal();
    }
}
